﻿<!DOCTYPE html>
<html>
<head>
<title>床位费设定</title>
<meta charset="utf-8">
<meta name="keywords" content="短照中心-湘潭市康复养老中心;">
<meta name="description" content="短照中心-湘潭市康复养老中心;">
<link rel="stylesheet" rev="stylesheet" href="css/framepage.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="js/waitBox/wait.css">
<script src="js/vue.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/JSON-js-master/json2.js"></script>
<script src="js/waitBox/wait.js"></script>
</head>

<body style="background:rbg(216,216,216);">
<div class="form_div" id="vue_vm">
  <h3>新增床位费</h3>
  <ul>
    <li><span class="tit" style="width:42px;">户型：</span></li>
    <li>
      <select name="huxing" id="houseType_select" v-model="data.houseTypeId" style="width:312px;">
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
        <option value="二室一厅A户型包间">二室一厅A户型包间</option>
      </select>
    </li>
  </ul>
  <ul>
    <li><span class="tit" style="width:42px;">价格：</span></li>
    <li><span>
      <input type="text" placeholder="请输入价格" v-model="data.price" style="width:100px;"/>
      /月</span><span style="margin-left:30px;color:#009688;">{{(data.price/30).toFixed(2)}}/天</span></li>
  </ul>
  <ul>
    <li><span　class="tit" style="width:42px;">补助：</span></li>
    <li><span style="display:block;position:absolute;top:12px;left:0;">
      <input class="magic-radio" type="radio" v-model="data.subsidizationType" id="hs1" value="1"/>
      <label for="hs1" class="label_txt" style="width:100px;">饭卡补助</label>
      </span><span style="margin-left:93px;">
      <input type="text" placeholder="请输入饭卡金额" v-model="data.subsidizationMoney" style="width:100px;"/>
      元</span></li>
  </ul>
  <ul>
    <li style="margin-left:55px;"><span style="display:block;position:absolute;top:12px;left:7px;">
      <input class="magic-radio" type="radio" v-model="data.subsidizationType" id="hs2" value="2"/>
      <label for="hs2" class="label_txt" style="width:100px;">包餐补助</label>
      </span><span style="margin-left:100px;">
      <input type="text" placeholder="请输入天数" v-model="data.subsidizationDay" style="width:100px;"/>
      天</span></li>
  </ul>
  <ul>
    <li style="margin-left:55px;"><span style="display:block;position:absolute;top:12px;left:7px;">
      <input class="magic-radio" type="radio" v-model="data.subsidizationType" id="hs3" value="3"/>
      <label for="hs3" class="label_txt" style="width:100px;">无补助</label>
      </span></li>
  </ul>
  <ul>
    <li style="margin-top:20px;"><span class="tit" style="width:70px;">消费方式：</span></li>
  </ul>
  <ul>
    <li style="margin-left:80px;"><span　class="tit" style="width:300px;">VIP户：请在VIP卡进行设定</span></li>
  </ul>
  <ul>
    <li style="margin-left:80px;"><span　class="tit" style="width:60px;">普通户：</span></li>
    <li><span style="display:block;position:absolute;top:12px;left:0;">
      <input class="magic-radio" type="radio" name="nomalc" id="nomalbr1" v-model="data.consumptionType" value="1"/>
      <label for="nomalbr1" class="label_txt" style="width:150px;">半个月扣费{{(data.price/2).toFixed(2)}}元</label>
      </span></li>
    <!--
      <li><span style="display:block;position:absolute;top:12px;left:154px;">
        <input class="magic-radio" type="radio" name="nomalc" id="nomalbr2" v-model="data.consumptionType" value="2"/>
        <label for="nomalbr2" class="label_txt" style="width:150px;">1个月扣费{{data.price}}元</label>
        </span></li>
      -->
  </ul>
  <ul>
    <li><span class="tit" style="width:42px;">折扣：</span></li>
    <li><span>
      <input type="text" placeholder="请输入折扣比" v-model="data.discount" style="width:100px;"/>
      %（保留床位折扣百分比）</span></li>
  </ul>
  <ul>
    <li><span class="tit" style="width:42px;"></span></li>
    <li>
      <input type="button" value="确认提交" class="button button1" onclick="save();" style="height:38px;"/>
    </li>
  </ul>
</div>
<div style="clear:both;"></div>
<div class="list_div" id="vue_vm_list">
  <h3>已有床位费</h3>
  <div style="margin:0;padding:0;" v-for="todo in todos">
    <ul>
      <li style="width:150px;"><span style="display:block;position:absolute;top:12px;left:0;">
        <input class="magic-checkbox" type="checkbox" v-bind:name="todo.bedCostId" v-bind:id="todo.bedCostId"/>
        <label v-bind:for="todo.bedCostId" class="label_txt" style="color:#009688">{{todo.housrTypeName}}</label>
        </span></li>
      <li style="width:90px;"><span> {{todo.price}}元/月</span></li>
      <li style="width:90px;"><span>{{(todo.price/30).toFixed(2)}}元/天</span></li>
      <li style="width:120px;"><span>{{getSubsidizationText(todo.subsidization, todo.subsidizationValue)}}</span></li>
      <li style="width:130px;"><span>{{todo.consumptionType==1?'半个月扣费':'一个月扣费'}}{{todo.consDeductionWay}}元</span></li>
      <li style="width:100px;"><span>保床折扣{{todo.discount}}%</span></li>
      <li style="width:130px;">
        <input type="button" value="价格维护" class="button button1" v-on:click="openEditWindow(todo);" style="height:38px;"/>
      </li>
      <li style="width:120px;"><span><a v-bind:href="getHistoryHrefById(todo.bedCostId)" target="_blank">价格维护历史</a></span></li>
    </ul>
  </div>
  <div class="for_ie_div"><!--为兼容IE-->
    <ul>
      <!--
      <li style="width:160px;">
        <input type="button" value="价格维护" class="button button1" onclick="window.open('1-3-1bedrate-1edit.html','1-3-1bedrate')" style="height:38px;"/>
      </li>
      -->
      <li style="width:160px;">
        <input type="button" value="删除" class="button button2" onclick="deleteBatch();" style="height:38px;"/>
      </li>
    </ul>
  </div>
</div>
<script src="js/common.js"></script> 
<script src="js/common_function.js"></script> 
<script src="js/busi/house_type_select.js"></script> 
<script src="js/busi/bed_cost.js"></script> 
<script src="js/busi/bed_cost_ex.js"></script>
</body>
</html>